<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddTypeToAirdrop extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::table('airdrops', function (Blueprint $table) {
            $table->string('type', 16)->default(\App\Enums\ProductType::ISSUE)->comment('商品类型: 发行/转售/肓盒');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::table('airdrops', function (Blueprint $table) {
            Schema::dropIfExists('airdrops');
        });
    }
}
